package com.ndd.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * 2024/4/27 11:03
 * wuhon
 * 用户修改DTO
 */
@Data
public class UserUpdateDTO {
    @NotBlank(message = "修改的用户名不能为空！")
    private String username;//用户名
    @NotBlank(message = "修改的电话不能为空！")
    @Length(min = 11,max = 11,message = "电话号码为11位")
    private String phone;//电话
    @NotBlank(message = "修改的邮箱不能为空！")
    private String email;//邮箱
    private Integer gender;//性别
}
